package com.kc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kc.bean.UserPassword;

import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.concurrent.CompletableFuture;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2019-10-09
 */
public interface IUserPasswordService extends IService<UserPassword> {

    CompletableFuture<Integer> inst(UserPassword userPassword);

    String getAccountId(String phone,String password) throws NoSuchPaddingException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, IllegalBlockSizeException, BadPaddingException, InvalidKeyException;
}
